import Vue from 'vue'
import Vuex from 'vuex'
import state from "./state"
import mutations from "./mutations"
Vue.use(Vuex)

export default new Vuex.Store({
  state: state,
  /*  actions:{//那边是commit 这里就不用了，如果是dispatch就用
      changeCity(ctx,city){
        ctx.commit("changeCity",city)
      }
    },*/
  mutations: mutations
})
